package com.example.easeimpro.model.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

import androidx.annotation.Nullable;

import com.example.easeimpro.model.dao.ContactTable;
import com.example.easeimpro.model.dao.InviteTable;

public class DBHelper extends SQLiteOpenHelper {
    public DBHelper(@Nullable Context context,String name) {
        super(context, name, null, 1);
        Log.e(TAG, "LoginSuccess: "+name );
    }

    private static final String TAG = "DBHelper";
    @Override
    public void onCreate(SQLiteDatabase db) {

        db.execSQL(ContactTable.CREATE_TAB);
        db.execSQL(InviteTable.CREATE_TAB);

        Log.e(TAG, "onCreate: "+InviteTable.CREATE_TAB );
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
